<?php
$auth = Zend_Auth::getInstance();
$role = new Middleman_Plugin_Acl(null, $auth);
$roleName = $role->getRole();
?>
<div id="left-col">
    <div class="box">
        <h4 class="yellow">Side Menu</h4>
        <div class="box-container"><!-- use no-padding wherever you need element padding gone -->
            <ul class="list-links">
                <li><a href="#">Manage Projects</a>
                    <ul>
                        <li><a href="<?php echo $this->baseUrl() ?>/project/list">Show list</a></li>
                         <?php if ($roleName == 'admin'): ?>
                        <li><a href="<?php echo $this->baseUrl() ?>/project/add">Create new</a></li>
                        <?php endif;?>
                    </ul>
                </li>
                <?php if ($roleName == 'admin'): ?>
                    <li><a href="#">Manage Users</a>
                        <ul>
                            <li><a href="/user/list">Show list</a></li>
                            <li><a href="/user/add">Create new</a></li>
                        </ul>
                    </li>
                <?php endif; ?>
            </ul>
        </div><!--end of div.box-container -->
    </div><!-- end of div.box -->
</div> <!-- end of div#left-col -->